/**
 * Created by ritamashin on 2017/11/19.
 */
import * as apis from '../apis'


export function getHotSaleItems(gender = 1, generation = 2,offset = 0, limit = 50) {
    return dispatch => {
        apis.getHotSaleData(gender, generation, offset, limit)
            .then(response => {
                let {code, data, message} = response;
                let items = data['items'];
                dispatch({
                    type: 'HOT_SALT_APPEND_ITEMS',
                    items
                })


            })
    }
}
